home *** CD-ROM | disk | FTP | other *** search
/ Light ROM 1 / LIGHT-ROM 1 (Amiga Library Services)(1994).iso / ffdisks / d902.lha / Less / Source / source.lha / version.c < prev   
C/C++ Source or Header  |  1993-07-15  |  9KB  |  166 lines

  1. #include "less.h"
  2.  
  3. /*
  4.  *              less
  5.  *      Copyright (c) 1984,1985  Mark Nudelman
  6.  *
  7.  *      This program may be freely used and/or modified,
  8.  *      with the following provisions:
  9.  *      1. This notice and the above copyright notice must remain intact.
  10.  *      2. Neither this program, nor any modification of it,
  11.  *         may be sold for profit without written consent of the author.
  12.  *
  13.  *      -----------------------------------------------------------------
  14.  *
  15.  *      This program is a paginator similar to "more",
  16.  *      but allows you to move both forward and backward in the file.
  17.  *      Commands are based on "more" and "vi".
  18.  *
  19.  *      ----------------------- CHANGES ---------------------------------
  20.  *
  21.  *          Allowed use on standard input               1/29/84   markn
  22.  *          Added E, N, P commands                      2/1/84    markn
  23.  *          Added '=' command, 'stop' signal handling   4/17/84   markn
  24.  *          Added line folding                          4/20/84   markn
  25.  *      v2: Fixed '=' command to use BOTTOM_PLUS_ONE,
  26.  *          instead of TOP, added 'p' & 'v' commands    4/27/84   markn
  27.  *      v3: Added -m and -t options, '-' command        5/3/84    markn
  28.  *      v4: Added LESS environment variable             5/3/84    markn
  29.  *      v5: New comments, fixed '-' command slightly    5/3/84    markn
  30.  *      v6: Added -Q, visual bell                       5/15/84   markn
  31.  *      v7: Fixed jump_back(n) bug: n should count real
  32.  *          lines, not folded lines.  Also allow number
  33.  *          on G command.                               5/24/84   markn
  34.  *      v8: Re-do -q and -Q commands                    5/30/84   markn
  35.  *      v9: Added "+<cmd>" argument                     9/25/84   markn
  36.  *      v10: Fixed bug in -b<n> argument processing     10/10/84  markn
  37.  *      v11: Made error() ring bell if \n not entered.  10/18/84  markn
  38.  *      -----------------------------------------------------------------
  39.  *      v12: Reorganized signal handling and made
  40.  *           portable to 4.2bsd.                        2/13/85   mark
  41.  *      v13: Reword error message for '-' command.      2/16/85   mark
  42.  *      v14: Added -bf and -bp variants of -b.          2/22/85   mark
  43.  *      v15: Miscellaneous changes.                     2/25/85   mark
  44.  *      v16: Added -u flag for backspace processing.    3/13/85   mark
  45.  *      v17: Added j and k commands,
  46.  *              changed -t default.                     4/13/85   mark
  47.  *      v18: Rewrote signal handling code.              4/20/85   mark
  48.  *      v19: Got rid of "verbose" eq_message().         5/2/85    mark
  49.  *           Made search() scroll in some cases.
  50.  *      v20: Fixed screen.c ioctls for System V.        5/21/85   mark
  51.  *      v21: Fixed some first_cmd bugs.                 5/23/85   mark
  52.  *      v22: Added support for no RECOMP nor REGCMP.    5/24/85   mark
  53.  *      v23: Miscellanous changes and prettying up.     5/25/85   mark
  54.  *              Posted to USENET.
  55.  *      v24: Added ti,te terminal init & de-init       6/3/85 Mike Kersenbrock
  56.  *      v25: Added -U flag, standout mode underlining.  6/8/85    mark
  57.  *      v26: Added -M flag.                             6/9/85    mark
  58.  *           Use underline termcap (us) if it exists.
  59.  *      v27: Renamed some variables to make unique in   6/15/85   mark
  60.  *           6 chars.  Minor fix to -m.
  61.  *      v28: Fixed right margin bug.                    6/28/85   mark
  62.  *      v29: Incorporated M.Rose's changes to signal.c  6/28/85   mark
  63.  *      v30: Fixed stupid bug in argument processing.   6/29/85   mark
  64.  *      v31: Added -p flag, changed repaint algorithm.  7/15/85   mark
  65.  *           Added kludge for magic cookie terminals.
  66.  *      v32: Added cat_file if output not a tty.        7/16/85   mark
  67.  *      v33: Added -e flag and EDITOR.                  7/23/85   mark
  68.  *      v34: Added -s flag.                             7/26/85   mark
  69.  *      v35: Rewrote option handling; added option.c.   7/27/85   mark
  70.  *      v36: Fixed -e flag to work if not last file.    7/29/85   mark
  71.  *      v37: Added -x flag.                             8/10/85   mark
  72.  *      v38: Changed prompting; created prompt.c.       8/19/85   mark
  73.  *      v39: (Not -p) does not initially clear screen.  8/24/85   mark
  74.  *      v40: Added "skipping" indicator in forw().      8/26/85   mark
  75.  *              Posted to USENET.
  76.  *      v41: ONLY_RETURN, control char commands,        9/17/85   mark
  77.  *           faster search, other minor fixes.
  78.  *      v42: Added ++ command line syntax;              9/25/85   mark
  79.  *           ch_fsize for pipes.
  80.  *      v43: Added -h flag, changed prim.c algorithms.  10/15/85  mark
  81.  *      v44: Made END print in all cases of eof;        10/16/85  mark
  82.  *           ignore SIGTTOU after receiving SIGTSTP.
  83.  *      v45: Never print backspaces unless -u.          10/16/85  mark
  84.  *      v46: Backwards scroll in jump_loc.              10/24/85  mark
  85.  *      v47: Fixed bug in edit(): *first_cmd==0         10/30/85  mark
  86.  *      v48: Use TIOCSETN instead of TIOCSETP.          11/16/85  mark
  87.  *           Added marks (m and ' commands).
  88.  *              Posted to USENET.
  89.  *      -----------------------------------------------------------------
  90.  *      v49: Fixed bug: signal didn't clear mcc.        1/9/86    mark
  91.  *      v50: Added ' (quote) to gomark.                 1/15/86   mark
  92.  *      v51: Added + cmd, fixed problem if first_cmd
  93.  *           fails, made g cmd sort of "work" on pipes
  94.  *           even if bof is no longer buffered.         1/16/86   mark
  95.  *      v52: Made short files work better.              1/17/86   mark
  96.  *      v53: Added -P option.                           1/20/86   mark
  97.  *      v54: Changed help to use HELPFILE.              1/20/86   mark
  98.  *      v55: Messages work better if not tty output.    1/23/86   mark
  99.  *      v56: Added -l option.                           1/24/86   mark
  100.  *      v57: Fixed -l to get confirmation before
  101.  *           overwriting an existing file.              1/31/86   mark
  102.  *      v58: Added filename globbing.                   8/28/86   mark
  103.  *      v59: Fixed some bugs with very long filenames.  9/15/86   mark
  104.  *      v60: Incorporated changes from Leith (Casey)
  105.  *           Leedom for boldface and -z option.         9/26/86   mark
  106.  *      v61: Got rid of annoying repaints after ! cmd.  9/26/86   mark
  107.  *              Posted to USENET.
  108.  *      -----------------------------------------------------------------
  109.  *      v62: Added is_directory(); change -z default to
  110.  *           -1 instead of 24; cat-and-exit if -e and
  111.  *           file is less than a screenful.             12/23/86  mark
  112.  *      v63: Fixed bug in cat-and-exit if > 1 file.     1/8/87    mark
  113.  *      v64: Changed puts/putstr, putc/putchr,
  114.  *           getc/getchr to avoid name conflict with
  115.  *           stdio functions.                           1/12/87  mark
  116.  *      v65: Allowed '-' command to change NUMBER
  117.  *           valued options (thanks to Gary Puckering)  1/26/87  mark
  118.  *      v66: Fixed bug: prepaint should use force=1.    2/13/87  mark
  119.  *      v67: Added !! and % expansion to ! command.     2/24/87  mark
  120.  *      v68: Added SIGWINCH and TIOCGWINSZ support;
  121.  *           changed is_directory to bad_file.
  122.  *           (thanks to J. Robert Ward)                 2/25/87  mark
  123.  *      v69: Added SIGWIND and WIOCGETD (for Unix PC).  2/25/87  mark
  124.  *      v70: Changed help cmd from 'h' to 'H'; better
  125.  *           error msgs in bad_file, errno_message.     3/13/87  mark
  126.  *      v71: Changed -p to -c, made triple -c/-C
  127.  *           for clear-eol like more's -c.              5/11/87  mark
  128.  *      v72: Added -E, -L, use $SHELL in lsystem().     6/26/87  mark
  129.  *           (thanks to Steve Spearman)
  130.  *      v73: Allow Examine "#" for previous file.       6/26/87  mark
  131.  *              Posted to USENET 8/25/87.
  132.  *      -----------------------------------------------------------------
  133.  *      Amiga ports:
  134.  *      (Any history previous to 1.3 lost)
  135.  *      1.3: Original? port to Amiga by Bob Leivian     ???
  136.  *      1.3Z: Bugs fixed to run under AmigaDos 1.3 and  6/01/91  rlz
  137.  *           2.0 on all Amiga models through A3000.
  138.  *           Determines size of full screen workbench
  139.  *           window, and handles whatever size it gets
  140.  *           and whatever font.  Permits window resizing,
  141.  *           close gadget.  Recognizes Amiga ANSI
  142.  *           graphic rendition codes.
  143.  *      1.4Z: Several bugs fixed.  Error handling       6/08/91  rlz
  144.  *           much improved.  Made residentable.
  145.  *           User-specifiable window size/placement.
  146.  *           Recognizes international character set
  147.  *           characters 160 - 255 (decimal).  Regular
  148.  *           expression searches added.
  149.  *        1.5Z: Small bug fixes and changes to compile    2/20/93  rlz
  150.  *             under SAS/C v. 6.2.  Redid version string
  151.  *             to work with AmigaDos version command.
  152.  *             Rewrote Amiga console IO to permit use
  153.  *             of original CLI or AUX: window.
  154.  *             Added 'w' code to window designator, to
  155.  *             build Less window relative to the CLI
  156.  *             window from which it was launched.  All
  157.  *             sprintf() done with exec.library RawDoFmt(),
  158.  *             avoiding overhead of printf().
  159.  *        1.6Z: The "invalid flag" error message was not    7/14/93  rlz
  160.  *             printing correctly.  Added -f option (used
  161.  *             to be the "clean" flag) to keep ^M (carriage
  162.  *             return) from displaying.
  163.  */
  164.  
  165. char version[] = "$VER: Amiga Less 1.6Z";
  166.